package com.example.demo.mapper;

import com.example.demo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface UserMapper2 {

    @Select("select * from articleinfo")
    List<User> selectAll();

    @Select("select * from userinfo where id=#{id}")
    User selectById(Integer id);
}
